filechooserbutton: Remove deprecated API
authorTimm Bäder <mail@baedert.org>
Fri, 14 Oct 2016 19:19:33 +0000 (21:19 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Oct 2016 22:29:19 +0000 (00:29 +0200)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserbutton.h

index e87992eff51dd9f005747bd82f9be6177e60df03..4d953292e9f29c853682ec3ab60e7b297734b4ec 100644 (file)
@@ -1457,8 +1457,6 @@ gtk_file_chooser_button_get_title
 gtk_file_chooser_button_set_title
 gtk_file_chooser_button_get_width_chars
 gtk_file_chooser_button_set_width_chars
-gtk_file_chooser_button_get_focus_on_click
-gtk_file_chooser_button_set_focus_on_click
 
 <SUBSECTION Standard>
 GTK_FILE_CHOOSER_BUTTON
index 2a07563673417ecaa995ff71dc6d7f780e701d72..986101a87bcfcae5801bb3b8b179166c7b91fe2b 100644 (file)
@@ -41,7 +41,6 @@
 #include "gtkimage.h"
 #include "gtklabel.h"
 #include "gtkliststore.h"
-#include "deprecated/gtkstock.h"
 #include "gtktreemodelfilter.h"
 #include "gtkseparator.h"
 #include "gtkfilechooserdialog.h"
@@ -3117,48 +3116,3 @@ gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button,
   gtk_label_set_width_chars (GTK_LABEL (button->priv->label), n_chars);
   g_object_notify (G_OBJECT (button), "width-chars");
 }
-
-/**
- * gtk_file_chooser_button_set_focus_on_click:
- * @button: a #GtkFileChooserButton
- * @focus_on_click: whether the button grabs focus when clicked with the mouse
- *
- * Sets whether the button will grab focus when it is clicked with the mouse.
- * Making mouse clicks not grab focus is useful in places like toolbars where
- * you don’t want the keyboard focus removed from the main area of the
- * application.
- *
- * Since: 2.10
- *
- * Deprecated: 3.20: Use gtk_widget_set_focus_on_click() instead
- */
-void
-gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button,
-                                           gboolean              focus_on_click)
-{
-  g_return_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button));
-
-  gtk_widget_set_focus_on_click (GTK_WIDGET (button), focus_on_click);
-}
-
-/**
- * gtk_file_chooser_button_get_focus_on_click:
- * @button: a #GtkFileChooserButton
- *
- * Returns whether the button grabs focus when it is clicked with the mouse.
- * See gtk_file_chooser_button_set_focus_on_click().
- *
- * Returns: %TRUE if the button grabs focus when it is clicked with
- *               the mouse.
- *
- * Since: 2.10
- *
- * Deprecated: 3.20: Use gtk_widget_get_focus_on_click() instead
- */
-gboolean
-gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button)
-{
-  g_return_val_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button), FALSE);
-
-  return gtk_widget_get_focus_on_click (GTK_WIDGET (button));
-}
index bf0fe91aeb8ef1e227b41b4fa22a20767ff41e15..19eaa9bd9a8e211bffb468bfb339a08ccb4b6feb 100644 (file)
@@ -87,11 +87,6 @@ gint                  gtk_file_chooser_button_get_width_chars  (GtkFileChooserBu
 GDK_AVAILABLE_IN_ALL
 void                  gtk_file_chooser_button_set_width_chars  (GtkFileChooserButton *button,
                                                                gint                  n_chars);
-GDK_DEPRECATED_IN_3_20_FOR(gtk_widget_get_focus_on_click)
-gboolean              gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button);
-GDK_DEPRECATED_IN_3_20_FOR(gtk_widget_set_focus_on_click)
-void                  gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button,
-                                                                  gboolean              focus_on_click);
 
 G_END_DECLS